package com.smallchange.OOP;
import java.util.Scanner;
public class Test {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        SmallChangeSysOOP smallChangeSysOOP = new SmallChangeSysOOP();

        while(smallChangeSysOOP.loop) {
            System.out.println("======================零钱通菜单=================i`m back");
            System.out.println("\t\t\t1 零钱通明细");
            System.out.println("\t\t\t2 收益入账");
            System.out.println("\t\t\t3 消费");
            System.out.println("\t\t\t4 退    出");

            System.out.println("请选择（1-4）");
            int i = in.nextInt();

            if (1 == i) {
                smallChangeSysOOP.detail();
            } else if (2 == i) {
                smallChangeSysOOP.income();
            } else if (3 == i) {
                smallChangeSysOOP.pay();
            } else if (4 == i) {
                smallChangeSysOOP.exit();
            }else{
                System.out.println("选择有误，请重新选择");
            }


        }

    }
}
